﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

using DHQGHN.DAL.Base;

namespace DHQGHN.DAL.DAO
{
    public class AdminMenuDAO: SqlDAO
    {

        #region constructor
        public AdminMenuDAO(String connectionString,System.Type type=null)
            : base(connectionString, type)
        {

        }
        #endregion

        #region Procedure Name in Database
        public const string SP_GET_ALL = "spGetAllMenu";                     
        #endregion


        #region data helpeer
        public List<Models.AdminMenuModel> GetAll(Dictionary<String,String> mapDictionary)
        {
            try
            {
                SqlCommand command = this.GetSprocCommand(SP_GET_ALL);
                return GetList<Models.AdminMenuModel>(command, mapDictionary);                
            }
            catch
            {
                throw;
            }
        }


        #endregion

    }
}
